﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

public partial class Controls_ucVideo : System.Web.UI.UserControl
{
    protected string video = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        //get first file and show it
        DirectoryInfo imgInfo = new DirectoryInfo(Server.MapPath("~/clips"));
        FileInfo[] fileinDir = imgInfo.GetFiles();
        if (fileinDir.Length > 0)
        {
            video = fileinDir[0].Name;
        }
    }
}